package com.bjpowernode.springboot.service.impl;

import com.bjpowernode.springboot.dao.StudentRepositories;
import com.bjpowernode.springboot.domain.Student;
import com.bjpowernode.springboot.service.StudentService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * Copyright (C), 2021-2021, 颜子初
 * Author: yan
 * Date: 2021/11/12 16:53
 * FileName: StudentServiceImpl
 * Description:
 */

@Service
public class StudentServiceImpl implements StudentService {
    @Autowired
    private StudentRepositories studentRepositories;

    @Override
    public boolean saveMulti(Iterable<Student> students) {

        studentRepositories.saveAll(students);
        return false;
    }

}
